//
//  FZ_TuiJian_CollectionViewCell_Two.m
//  ProjectOfBStage
//
//  Created by dllo on 15/11/13.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "FZ_TuiJian_TableViewCell_Two.h"
#import "BaseHeader.h"
#include "FZ_RootModelR.h"
#import <UIImageView+WebCache.h>
@interface FZ_TuiJian_TableViewCell_Two ()

@property (retain, nonatomic) IBOutlet UIImageView *imageViewHead;
@property (retain, nonatomic) IBOutlet UILabel *labelTitle;
@property (retain, nonatomic) IBOutlet UILabel *labelName;
@property (retain, nonatomic) IBOutlet UILabel *labelShu;
@property (retain, nonatomic) IBOutlet UIButton *buttonXin;
@property (nonatomic, retain) FZ_RootModelR *modelSC;
@end
@implementation FZ_TuiJian_TableViewCell_Two

- (void)dealloc {
    [_labelTitle release];
    [_labelName release];
    [_labelShu release];
    [_imageViewHead release];
    [_buttonXin release];
    [super dealloc];
}
- (IBAction)buttonSC:(UIButton *)sender {
//    sender.selected = !sender.isSelected;
//    if (sender.isSelected) {
//        [self.delegate buttonSCModel:self.modelSC];
//        [self.buttonXin setImage:[UIImage imageNamed:@"likeWhite.png"] forState:UIControlStateNormal];
//    }else{
//        [self.delegateD buttonDeleModel:self.modelSC];
//        [self.buttonXin setImage:[UIImage imageNamed:@"xin32.png"] forState:UIControlStateNormal];
//    }
}

- (void)setJieShouModelS:(FZ_RootModelR *)jieShouModelS{
    if (_jieShouModelS != jieShouModelS) {
        [_jieShouModelS release];
        _jieShouModelS = [jieShouModelS retain];
    }
    [self.imageViewHead sd_setImageWithURL:[NSURL URLWithString:jieShouModelS.pic] placeholderImage:WAIT_PICTURE];
    self.labelTitle.text = jieShouModelS.name;
    self.labelName.text = [jieShouModelS.user objectForKey:@"name"];
    [self.buttonXin setImage:[UIImage imageNamed:@"xin32.png"] forState:UIControlStateNormal];
    self.labelShu.text = jieShouModelS.like_count;
    self.modelSC = jieShouModelS;
}


-(void)layoutSubviews{
    [super layoutSubviews];

}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
